document.getElementById("testBtn").addEventListener("click", function () {
    test();
})

document.getElementById("consoleProjectBtn").addEventListener("click",function () {
    consoleProject()
})

document.getElementById("refreshBtn").addEventListener("click",function () {
    window.location.href=window.location.href
})
function test() {
    var exec = require('child_process').exec;
    exec('start "" "C://Program Files//Internet Explorer//iexplore.exe" "http://consoleproject.sxiaobao.com/pages/login/login.html"', function (error, stdout, stderr) {
        if (stdout.length > 1) {
            console.log('you offer args:', stdout);
        } else {
            console.log('you don\'t offer args');
        }
        if (error) {
            console.info('stderr : ' + stderr);
        }
    });
}

function consoleProject() {
    var str="http://consoleproject.sxiaobao.com/pages/login/login.html"
    document.getElementById('webview').src=str
}